<?php
/*!
 * Theme Name:One Nav
 * Theme URI:https://www.iotheme.cn/
 * Author:iowen
 * Author URI:https://www.iowen.cn/
 */
if ( ! defined( 'ABSPATH' ) ) { exit; }  
function hot_search($type){
$t= mt_rand();
$api="//apiv2.iotheme.cn/hot/get.php";
switch ($type) {
    case "baidu_topsearch":
        $title = '百度';
        $slug = '热点';
        $ico = 'icon-baidu';
        $color = '#2319DC';
        $iframe = true;
        include( get_theme_file_path('/templates/hot/hot-default.php') ); 
        break;
    case "weibo_topsearch":
        $title = '微博';
        $slug = '热搜榜';
        $ico = 'icon-weibo';
        $color = '#E6162D';
        $iframe = true;
        include( get_theme_file_path('/templates/hot/hot-default.php') ); 
        break;
    case "zhihu_topsearch":
        $title = '知乎';
        $slug = '热榜';
        $ico = 'icon-zhihu';
        $color = '#0084FF';
        $iframe = false;
        include( get_theme_file_path('/templates/hot/hot-default.php') ); 
        break;
    case "smzdm_select":
        $title = '什么值得买';
        $slug = '精选好价';
        $ico = 'icon-smzdm';
        $color = '#ED382F';
        $iframe = false;
        include( get_theme_file_path('/templates/hot/hot-smzdm.php') ); 
        break;
    case "weread_topsearch":
        $title = '微信读书';
        $slug = '今日阅读';
        $ico = 'icon-wechat';
        $color = '#6595ff';
        $iframe = false;
        include( get_theme_file_path('/templates/hot/hot-default.php') ); 
        break;
    case "sspai_topsearch":
        $title = '少数派';
        $slug = '热门文章';
        $ico = 'icon-sspai';
        $color = '#ca3632';
        $iframe = true;
        include( get_theme_file_path('/templates/hot/hot-default.php') ); 
        break;
    case "52pojie_topsearch":
        $title = '吾爱破解';
        $slug = '今日热帖';
        $ico = 'icon-wuaipojie';
        $color = '#d32921';
        $iframe = false;
        include( get_theme_file_path('/templates/hot/hot-default.php') ); 
        break;
    case "36kr_topsearch":
        $title = '36氪';
        $slug = '24小时热榜';
        $ico = 'icon-36kr';
        $color = '#676ff6';
        $iframe = true;
        include( get_theme_file_path('/templates/hot/hot-default.php') ); 
        break;
    case "bilibili_topsearch":
        $title = '哔哩哔哩';
        $slug = '全站日榜';
        $ico = 'icon-bilibili';
        $color = '#5099d7';
        $iframe = true;
        include( get_theme_file_path('/templates/hot/hot-default.php') ); 
        break;
    case "lssdjt_topsearch":
        $title = '历史上的今天';
        $slug = '';
        $ico = 'icon-lssdjt';
        $color = '#fe382F';
        $iframe = false;
        include( get_theme_file_path('/templates/hot/hot-no-value.php') ); 
        break;
    case "douban_topsearch":
        $title = '豆瓣小组';
        $slug = '讨论精选';
        $ico = 'icon-douban';
        $color = '#41939c';
        $iframe = true;
        include( get_theme_file_path('/templates/hot/hot-default.php') ); 
        break;
    case "weixin_news":
        $title = '微信热门';
        $slug = '';
        $ico = 'icon-wechat';
        $color = '#00a06a';
        $iframe = false;
        include( get_theme_file_path('/templates/hot/hot-no-value.php') ); 
        break;
    case "weixin_amusing":
        $title = '微信搞笑';
        $slug = '';
        $ico = 'icon-wechat';
        $color = '#00a06a';
        $iframe = false;
        include( get_theme_file_path('/templates/hot/hot-no-value.php') ); 
        break;
    case "weixin_gossip":
        $title = '微信八卦精';
        $slug = '';
        $ico = 'icon-wechat';
        $color = '#00a06a';
        $iframe = false;
        include( get_theme_file_path('/templates/hot/hot-no-value.php') ); 
        break;
    case "weixin_financial":
        $title = '微信财经迷';
        $slug = '';
        $ico = 'icon-wechat';
        $color = '#00a06a';
        $iframe = false;
        include( get_theme_file_path('/templates/hot/hot-no-value.php') ); 
        break;
    case "weixin_hotword":
        $title = '微信热搜词';
        $slug = '';
        $ico = 'icon-wechat';
        $color = '#00a06a';
        $iframe = false;
        include( get_theme_file_path('/templates/hot/hot-no-value.php') ); 
        break;
    case "dsb_news":
        $title = '电商报';
        $slug = '24h快讯';
        $ico = 'icon-dsb';
        $color = '#f43e3d';
        $iframe = true;
        include( get_theme_file_path('/templates/hot/hot-no-value.php') ); 
        break;
    default:
        $title = '百度';
        $slug = '热搜';
        $ico = 'icon-baidu';
        $color = '#2319DC';
        $iframe = false;
        include( get_theme_file_path('/templates/hot/hot-no-value.php') ); 
}
?>

<?php }

//http://zhibo.sina.com.cn/api/zhibo/feed?callback=jQuery1112042151262348278307_1583126404217&page=1&page_size=20&zhibo_id=152&tag_id=0&dire=f&dpc=1&pagesize=20&id=1638768&type=0&_=1583126404220
//http://zhibo.sina.com.cn/api/zhibo/feed?callback=jQuery1112042151262348278307_1583126404217&page=1&page_size=20&zhibo_id=152&tag_id=0&dire=f&dpc=1&pagesize=20&id=1638768&type=0&_=1583126404221
//http://zhibo.sina.com.cn/api/zhibo/feed?page=1&page_size=20&zhibo_id=152&tag_id=0&dire=f&dpc=1&pagesize=20&_=1583119028651
//
